#include "Timer.h"



void Timer2_Init()
{
   RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2,ENABLE);
   
   TIM_TimeBaseInitTypeDef TIM2_InitStrucure;
   
   TIM2_InitStrucure.TIM_Prescaler = 0;
   TIM2_InitStrucure.TIM_Period = 0;
   TIM2_InitStrucure.TIM_ClockDivision = 0;
   TIM2_InitStrucure.TIM_CounterMode = TIM_CounterMode_Down;
   
   TIM_TimeBaseInit(TIM2,&TIM2_InitStrucure);
   
}